package com.twohand.admin.Service.impl;

import com.twohand.admin.Service.FileService;
import com.twohand.admin.Util.FileUpload;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class FileServiceImpl implements FileService {
    @Autowired
    FileUpload fileUpload;
    @Override
    public String uploadImage(MultipartFile file, String type) {
        fileUpload.setTypePath(type);
        return fileUpload.uploadImage(file);
    }

    @Override
    public String uploadFile(MultipartFile file, String type) {
        return null;
    }
}
